package com.springboot.service;

import com.springboot.model.DoctorAppointSet;
import com.springboot.model.DoctorAppointSetKey;
import com.springboot.model.OrderForm;

public interface OrderDoctorService {
    //检查是否已有表单
    int checkOrderForm(OrderForm orderForm);
    //插入新的预约表单
    int insertOrderForm(OrderForm orderForm);
    //获取新插入的预约表单
    OrderForm findOrderForm(OrderForm orderForm);

    //预约成功后，在医生预约设置把相应时间段人数减1
    DoctorAppointSet findDoctorAppointSet (DoctorAppointSetKey doctorAppointSetKey);
    int updataDoctorAppointSet(DoctorAppointSet doctorAppointSet);
}
